import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class TextFieldInputWidget extends StatelessWidget {
  TextEditingController? controller;
  ValueChanged<String>? onChanged;
  String hitTextStr = "请输入内容";

  TextFieldInputWidget(
      {Key? key, required this.hitTextStr, this.controller, this.onChanged})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      constraints: BoxConstraints(minWidth: 200, maxWidth: 400),
      child: TextField(
        controller: controller,
        decoration: InputDecoration(
            hintText: hitTextStr, border: const OutlineInputBorder()),
        onChanged: onChanged,
      ),
    );
  }
}
